package cn.hznc.domain.request.inventory;

import lombok.Data;

import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
import java.util.function.Predicate;

@Data
public class SafetyCapacityDetailReq  {

    /**
     * 刀具号
     */
    private String  idnr;

    /**
     * 物料编码
     */

    private String  partno;
    /**
     * 安全库存
     */

    private  String safetyInventory;

//    @Override
//    public boolean equals(Object o) {
//        if (this == o) return true;
//        if (!(o instanceof SafetyCapacityDetailReq)) return false;
//        SafetyCapacityDetailReq that = (SafetyCapacityDetailReq) o;
//        return idnr.equals(that.idnr) && partno.equals(that.partno);
//    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof SafetyCapacityDetailReq)) return false;
        SafetyCapacityDetailReq that = (SafetyCapacityDetailReq) o;
        return idnr.equals(that.idnr) && partno.equals(that.partno);
    }

    @Override
    public int hashCode() {
        return Objects.hash(idnr, partno);
    }
}
